Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply more ruff rules #633

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Aug 24, 2024

No description provided.

Copy link

codecov bot commented Aug 24, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 4 lines in your changes missing coverage. Please review.

Project coverage is 70.90%. Comparing base (28c1ba1) to head (c95b95b).

Files with missing lines Patch % Lines
src/wheel/cli/convert.py 0.00% 1 Missing ⚠️
src/wheel/cli/tags.py 66.66% 1 Missing ⚠️
src/wheel/macosx_libfile.py 50.00% 1 Missing ⚠️
src/wheel/metadata.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #633      +/-   ##
==========================================
- Coverage   71.18%   70.90%   -0.28%     
==========================================
  Files          14       14              
  Lines        1093     1093              
==========================================
- Hits          778      775       -3     
- Misses        315      318       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DimitriPapadopoulos DimitriPapadopoulos changed the title Apply ruff/Perflint rule PERF401 Apply more ruff rules Aug 24, 2024
@agronholm
Copy link
Contributor

I'm not seeing any changes to pyproject.toml?

@agronholm
Copy link
Contributor

May I ask what prompted this change?

@DimitriPapadopoulos
Copy link
Contributor Author

I just tried to apply some rules that raised a few valid issues in other projects.

PERF401 Use a list comprehension to create a transformed list
PIE810 Call `endswith` once with a `tuple`
PLC0208 Use a sequence type instead of a `set` when iterating over values
TCH003 Move standard library import into a type-checking block
FLY002 Consider f-string instead of string join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants